/*
 * @Author: rxn 1003312535@qq.com
 * @Date: 2024-06-19 10:24:45
 * @LastEditors: rxn 1003312535@qq.com
 * @LastEditTime: 2024-11-11 09:07:56
 * @FilePath: \vue3-progect\src\router\menu\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { t } from "@/utils/commonFun";
import { Menu } from "./menuInterface";

enum LangFlag {
	ZHCN = "zh-'zh-cn'",
	EN = "en"
}

let menu: Menu[] = [
	{
		menuId: 1,
		parentId: null,
		path: "/home",
		name: "Home",
		menuType: "topMenu",
		icon: "",
		component: "",
		redirect: "/home/todo",
		meta: {
			order: 1,
			icon: "ion:grid-outline",
			title: t("routes.menu.home"),
			lang: {
				"zh-cn": { value: "'zh-cn'", label: "中文", content: "首页" },
				en: { value: "en", label: "英文", content: "Home" }
			}
		},
		children: [
			{
				menuId: 3,
				parentId: 1,
				path: "/home/todo",
				name: "Todo",
				menuType: "menu",
				component: "/home/todo/index.vue",
				meta: {
					order: 1,
					icon: "ion:grid-outline",
					title: t("home.todo.name"),
					lang: {
						"zh-cn": { value: "'zh-cn'", label: "中文", content: "代办" },
						en: { value: "en", label: "英文", content: "Todo" }
					}
				}
			},
			{
				menuId: 31,
				parentId: 1,
				path: "/home/workbench",
				name: "workbench",
				menuType: "menu",
				component: "/home/workbench/index.vue",
				meta: {
					order: 2,
					icon: "ion:grid-outline",
					title: t("home.WorkBench.name"),
					lang: {
						"zh-cn": { value: "'zh-cn'", label: "中文", content: "工作台" },
						en: { value: "en", label: "英文", content: "workbench" }
					}
				}
			}
		]
	}
];
export default menu;
